if (window['swan']) {
    class Parser {
        constructor() {
            this._sdk = window['swan']
        }

        parse() {

        }
    }
    new Parser().parse();
}